//
//  ZWHomeManager.m
//  aixianfeng
//
//  Created by zhaowei on 17/5/4.
//  Copyright © 2017年 zhaowei. All rights reserved.
//

#import "ZWHomeManager.h"
#import "NETWorkTool.h"


@implementation ZWHomeManager

IMPLEMENTATION_SINGLETON(ZWHomeManager)

//请求数据
- (NSDictionary *)requestHomeInfomation {
    NSString *jsonStr = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"focus.json" ofType:@"php"] encoding:0 error:nil];
    
    NSData *jsonData = [jsonStr dataUsingEncoding:NSUTF8StringEncoding];
    NSMutableDictionary *jsonDict = [NSJSONSerialization JSONObjectWithData:jsonData options: NSJSONReadingAllowFragments error:nil];
    return jsonDict;
}

@end
